#include "Position.h"
#include "GameBoardModel.h"

Position::Position()
{
}

Position::Position(int x, int y)
{
	this->x = x;
	this->y = y;
}

bool operator==(const Position& a, const Position& b)  
{
	return a.x == b.x && a.y == b.y;
}

Position::operator size_t() const
{
	return x * GameboardModel::getInstance()->getBoardSize() + y;
}
